

        <g:set var="entityName" value="${message(code: 'leader.label', default: 'Leader')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="username" title="${message(code: 'leader.username.label', default: 'Username')}" />

                            <g:sortableColumn property="area" title="${message(code: 'leader.area.label', default: 'Area')}" />
                        
                            <g:sortableColumn property="passwd" title="${message(code: 'leader.passwd.label', default: 'Passwd')}" />
                        
                            <g:sortableColumn property="enabled" title="${message(code: 'leader.enabled.label', default: 'Enabled')}" />

                            <th></th>
                         
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${leaderInstanceList}" status="i" var="leaderInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${leaderInstance.id}">${fieldValue(bean: leaderInstance, field: "username")}</g:link></td>

                            <td>${fieldValue(bean: leaderInstance, field: "area")}</td> 
                        
                            <td>${fieldValue(bean: leaderInstance, field: "passwd")}</td>
                        
                            <td><g:formatBoolean boolean="${leaderInstance.enabled}" />
                            <g:link controller="leaderMgr" action="goswitch" id="${leaderInstance.id}">${!leaderInstance.enabled?"开启":"关闭"}
                            </g:link>
                            </td>

                             <td class="operate">
                            <x:operate width="420">
                                <g:link controller="leader" action="edit" id="${leaderInstance.id}"><g:message code="default.button.edit.label" /></g:link> | 
                                <g:link controller="leader" action="delete" id="${leaderInstance.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message')}');"><g:message code="default.button.delete.label" /></g:link>
                            </x:operate>
                            </td>
                        
                            
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <x:paginate total="${leaderInstanceTotal}" />
            </div>
